package com.wang.gulimall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wang.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.wang.gulimall.product.entity.AttrGroupEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 *
 * @author zifan
 * @email 2436341408@qq.com
 * @date 2020-12-09 14:58:44
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    IPage<AttrGroupEntity> selectAttrEntityByCateId(
            IPage<AttrGroupEntity> page,
            @Param("cateId") Long cateId,
            @Param("key") String key);

    void deleteRelation(@Param("collect") List<AttrAttrgroupRelationEntity> collect);
}
